export default {
    getParam: function (name) {
        var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
        var newUrl  = window.location.search.substr(1).match(reg);
        if(newUrl !=null)return  unescape(newUrl[2]); return null;
   }
}